Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Adjust text resource input component for input table #14151

Merged
merged 5 commits into from
Nov 29, 2024

Conversation

TomasEng
Copy link
Contributor

@TomasEng TomasEng commented Nov 25, 2024

Description

The StudioInputTable component reqiures its subcomponents to forward refs and to accept native props for input elements. It will also be necessary to set a class name for the different subcomponents of StudioTextResourceInput. This pull request adds this functionality to the StudioTextResourceInput component, so that we can create a StudioInputTable.Cell.TextResource component from it.

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

@github-actions github-actions bot added solution/studio/designer Issues related to the Altinn Studio Designer solution. frontend labels Nov 25, 2024
Copy link

codecov bot commented Nov 25, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.46%. Comparing base (2761798) to head (526f86e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #14151   +/-   ##
=======================================
  Coverage   95.45%   95.46%           
=======================================
  Files        1803     1803           
  Lines       23494    23505   +11     
  Branches     2719     2719           
=======================================
+ Hits        22427    22438   +11     
  Misses        813      813           
  Partials      254      254           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TomasEng TomasEng changed the title Adjust text resource input for input table refactor: Adjust text resource input for input table Nov 25, 2024
@TomasEng TomasEng force-pushed the adjust-text-resource-component-for-input-table branch from 312c300 to c3b9799 Compare November 25, 2024 13:40
@TomasEng TomasEng changed the title refactor: Adjust text resource input for input table refactor: Adjust text resource input component for input table Nov 25, 2024
@TomasEng TomasEng added skip-releasenotes Issues that do not make sense to list in our release notes skip-manual-testing PRs that do not need to be tested manually skip-documentation Issues where updating documentation is not relevant team/studio-domain1 labels Nov 25, 2024
@TomasEng TomasEng force-pushed the adjust-text-resource-component-for-input-table branch from c3b9799 to 5adbb9b Compare November 25, 2024 13:56
@TomasEng TomasEng marked this pull request as ready for review November 25, 2024 14:09
@standeren standeren self-assigned this Nov 26, 2024
Copy link
Contributor

@standeren standeren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vanskelig å finne noe å ta tak i her! 🤩

I tillegg til de ubetydelige kommentarene mine, som du bare må lukke om du ikke ønsker å ta stilling til, så tenkte jeg bare å informere om at når jeg åpner koden i Rider hos meg så får jeg masse typefeil som dette:

Type Element is not assignable to type
ReactElement<any, string | JSXElementConstructor<any>

og

Type Element is not assignable to type
string | number | boolean | ReactElement<any, string | JSXElementConstructor<any>> | Iterable<ReactNode> | ReactPortal
Property children is missing in type Element but required in type ReactPortal
index.d.ts(378, 9): children is declared here

Godt mulig det bare er typescript som ikke er konfigurert godt nok hos meg tho.

EDIT: Måtte oppdatere Rider 😉

@standeren standeren assigned TomasEng and unassigned standeren Nov 27, 2024
@TomasEng TomasEng assigned standeren and unassigned TomasEng Nov 27, 2024
@standeren standeren removed their assignment Nov 28, 2024
@TomasEng TomasEng merged commit 844b3b1 into main Nov 29, 2024
10 checks passed
@TomasEng TomasEng deleted the adjust-text-resource-component-for-input-table branch November 29, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend skip-documentation Issues where updating documentation is not relevant skip-manual-testing PRs that do not need to be tested manually skip-releasenotes Issues that do not make sense to list in our release notes solution/studio/designer Issues related to the Altinn Studio Designer solution. team/studio-domain1
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

2 participants